<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/quocha/lib/DanhMuc.php';
$danhmucOb = new DanhMuc();
$danhmucList = $danhmucOb->layDanhSachDanhMuc(DanhMuc::HIEN);
?>

<div id="templatemo_menu">
        
        	<div id="search_box">
              <form action="#" method="get">
                    <input type="text" value="" name="username" size="10" id="input_field" title="usernmae" />
                    <input type="submit" name="login" value="Search" alt="login" id="submit_btn" title="Login" />
              </form>
            </div>  
                  
            <ul id="nav">
            <li><a href="Trang-chu.html">Trang chủ</a>
            </li>
            <li><a href="#">Sản phẩm</a>
                <ul>
                    <?php foreach ($danhmucList as $item): ?>
                            <li><a href="San-Pham-<?php echo $item['id'] ?>.html"><?php echo $item['tieude'] ?></a></li>
                    <?php endforeach; ?>
                </ul>
            </li>
            <li><a href="#">Menu 3</a>
            </li>
            <li><a href="#">Menu 4</a></li>
            <li><a href="#">Menu 5</a></li>
            <li><a href="#">Menu 6</a></li>
        </ul>
        <script src="js/script_menu.js"></script>    	
        
        </div> <!-- end of templatemo_menu -->

